<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- 侧边栏 -->
<nav class="col-md-2 d-none d-md-block bg-dark sidebar">
    <div class="sidebar-sticky">
        <ul class="nav flex-column">
            <li class="nav-item">
                <a class="nav-link ${param.active == 'dashboard' ? 'active' : ''}" 
                   href="${pageContext.request.contextPath}/admin/dashboard">
                    <i class="fas fa-home"></i> 控制台
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link ${param.active == 'news' ? 'active' : ''}" 
                   href="${pageContext.request.contextPath}/admin/newsManage">
                    <i class="fas fa-newspaper"></i> 新闻管理
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link ${param.active == 'users' ? 'active' : ''}" 
                   href="${pageContext.request.contextPath}/admin/userManage">
                    <i class="fas fa-users"></i> 用户管理
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link ${param.active == 'categories' ? 'active' : ''}" 
                   href="${pageContext.request.contextPath}/admin/categoryManage">
                    <i class="fas fa-list"></i> 分类管理
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="${pageContext.request.contextPath}/logout">
                    <i class="fas fa-sign-out-alt"></i> 退出登录
                </a>
            </li>
        </ul>
    </div>
</nav> 